import axios from '../utils/request'
// 权限资源读取
export const userTypeRead = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/read',
        data
    })
}
// 权限资源创建
export const userTypeCreate = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/create',
        data
    })
}
// 权限资源更新
export const userTypeUpDate = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/update',
        data
    })
}
// 权限资源删除
export const userTypeDelete = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/delete',
        data
    })
}
// 根据名字查找权限
export const userTypeFindByName = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/findByName',
        data
    })
}
// 搜索、获取所有的权限名
export const findAllUserTypeName = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/findAllUserTypeName',
        data
    })
}

// 获取所有的菜单资源节点
export const findAllUserType = (data) =>
{
    return axios({
        method: 'post',
        url: '/usertype/findAllUserType',
        data
    })
}

